<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	// 跨域
	// const xhr = new XMLHttpRequest();
	// xhr.open("get","http://127.0.0.1/info");
	// xhr.send();
	// xhr.onload = function(){
	// 	console.log(xhr.response);
	// }
</script>
<script>
	function fn(num){
		console.log(num);
	}
	// script引入的JS地址对应的响应体内容会作为JS来执行。
</script>
<!--<script src="http://127.0.0.1/lib/3.js"></script>-->
<script src="http://127.0.0.1/info2"></script>
</html>